package com.goktech.dao.impl;

import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.goktech.dao.OrderDao;
import com.goktech.domain.Order;
import com.goktech.domain.OrderItem;

@Repository 
public class OrderDaoImpl extends SqlSessionDaoSupport implements OrderDao{
	
	@Override
	@Transactional
	public int insert(Order order) {
		return this.getSqlSession().insert(this.getClass().getName() + ".add",order);
	}

	@Override
	public int delete(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Order findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<OrderItem> list(OrderItem orderItem) {
		// TODO Auto-generated method stub
		return null;
	}

}
